#pragma once

#include "Vectors.h"

class ServiceProvider;

typedef STL::vector<PeopleVec>			PlayerRoleMap;
typedef PlayerRoleMap::iterator			PlayerRoleMapIt;
typedef PlayerRoleMap::const_iterator	PlayerRoleMapCit;

enum TeamAttitude
{
	Normal = 0,
	Training = 1,
	Match_of_the_season = 2
};


class TeamAI
{
public:
	TeamAI(ServiceProvider* const i_sp, Team* const i_team);
	void MakeFormation();
	void CheckFormation();
	void TryBuy(const bool i_doNotPrompt);
	void TrySell(const bool i_doNotPrompt);

private:
	ServiceProvider* m_sp;
	Team* m_team;
	PeopleVec m_brokenPlayers;
	PeopleVec m_nonBrokenPlayers;
	PlayerRoleMap m_map;
	int m_team_attitude;

	int	 TryCheat(const bool i_doNotPrompt);
	void SetTeamAttitude(int attitude);
};

inline void TeamAI::SetTeamAttitude(int attitude)
{
	m_team_attitude = attitude;
}
